package com.woniu108.extra.client;

import com.woniu108.carService.commos.model.Result;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author yanxi
 */
@FeignClient(name = "product-server", path = "/product")
public interface ProductClient {

    /**
     * 通过流程ID查服务详情是否存在
     *
     * @param streamId 流程ID
     * @return boolean值
     */
    @GetMapping("/serviceInfo/findServiceInfoByStreamId.c")
    @ApiOperation("通过流程ID查服务详情是否存在")
    @ApiImplicitParam(value = "streamId", name = "流程ID")
    public Result<Boolean> findServiceInfoByStreamId(@RequestParam("streamId") Integer streamId);
}
